<%@ page import="martial.arts.tracker.Payment" %>



<div class="fieldcontain ${hasErrors(bean: paymentInstance, field: 'account', 'error')} required">
	<label for="account">
		<g:message code="payment.account.label" default="Account" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="account" name="account.id" from="${martial.arts.tracker.Account.list()}" optionKey="id" required="" value="${paymentInstance?.account?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: paymentInstance, field: 'dueDate', 'error')} required">
	<label for="dueDate">
		<g:message code="payment.dueDate.label" default="Due Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dueDate" precision="day"  value="${paymentInstance?.dueDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: paymentInstance, field: 'paid', 'error')} ">
	<label for="paid">
		<g:message code="payment.paid.label" default="Paid" />
		
	</label>
	<g:checkBox name="paid" value="${paymentInstance?.paid}" />
</div>

<div class="fieldcontain ${hasErrors(bean: paymentInstance, field: 'paymentRule', 'error')} required">
	<label for="paymentRule">
		<g:message code="payment.paymentRule.label" default="Payment Rule" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="paymentRule" name="paymentRule.id" from="${martial.arts.tracker.PaymentRule.list()}" optionKey="id" required="" value="${paymentInstance?.paymentRule?.id}" class="many-to-one"/>
</div>

